//
//  ComposeTextView.swift
//  WBDemo
//
//  Created by Jin on 2018/5/14.
//  Copyright © 2018年 com.baidu.123. All rights reserved.
//

import UIKit
import SnapKit

class ComposeTextView: UITextView {

    lazy var placeholderLabel:UILabel = UILabel()
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
        setupUI()
    }

}

extension ComposeTextView {
    private func setupUI(){
        addSubview(placeholderLabel)
        
        placeholderLabel.font = UIFont.systemFont(ofSize: 14)
        placeholderLabel.text = "分享新鲜事..."
        placeholderLabel.textColor = UIColor.darkGray
        
        placeholderLabel.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(8)
            make.left.equalToSuperview().offset(10)
        }
    }
}
